<!-- 提示框组 -->
<template>
  <FormDialog
    v-for="item in Name"
    :title="Title[item]"
    :rules="Rules[item]"
    :data="Data[item]"
    :INITIAL_DATA="INITIAL_DATA[item]"
    v-model:visible="Visible[item]"
    :post="Post[item]"
    :width="Size[item]"
    :layout="Layout[item]"
  >
    <template #default="{ formData }">
      <slot :formData="formData" :item="item"> </slot>
    </template>
  </FormDialog>
</template>
<script setup lang="ts">
import { formGroup } from './FormDialog';
import FormDialog from './FormDialog.vue';

const props = defineProps<{ formObj: formGroup }>();
const { Name, Title, Rules, Data, INITIAL_DATA, Visible, Post, Size, Layout } = props.formObj;
</script>
